package com.xmy.controller;

import com.xmy.api.IOrderService;
import com.xmy.entity.Result;
import com.xmy.pojo.ShopOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangjinlinag
 * @Classname OrderController
 * @Description TODO
 * @Date 2021/5/12 1:35 下午
 */
@RestController
@RequestMapping
public class OrderController {
    @Autowired
    private IOrderService orderService;

    @RequestMapping("/order/confirmOrder")
    Result confirmOrder(@RequestBody ShopOrder shopOrder){
        return orderService.confirmOrder(shopOrder);
    }
}
